package org.opens.db.column.ani;

import org.opens.db.constant.DbType;

import java.lang.annotation.*;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2023/2/14
 */
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@Repeatable(value = TableColumns.class)
public @interface TableColumn {

    /**
     * 映射列名
     */
    String value() default "";

    /**
     * 数据库类型
     */
    DbType dbType();

}
